#ifndef OPENING_H
#define OPENING_H

#include <iostream>
#include <vector>
#include "abstract.h"
#include "../button.h"

#define PLAY 0
#define QUIT 1
#define NEW_LEVEL 2
#define EDIT_LEVEL 3
#define UP 4
#define DOWN 5

using namespace std;

class OpeningScreen:public AbstractScreen
{
	private:
		vector<string> maps;
		vector<string> mapNames;
		vector<string> mapPreviewFilePaths;
		vector<string> mapDescriptions;
		vector<Button> buttons;
		int fileStart,fileEnd;
	public:
		OpeningScreen(string mapDir);
		void getMaps(string dir);
		void display(void);
		void keyboard(unsigned char key,int x, int y);
		void special(int key,int x, int y);
		void keyboardUp(unsigned char key,int x, int y);
		void specialUp(int key,int x, int y);
		void mouse(int button, int state,int x, int y);
		void motion(int x, int y);
		void passiveMotion(int x, int y);

		void init();
};

#endif //OPENING_H
